﻿CollectSourceFiles(${CMAKE_CURRENT_SOURCE_DIR} PRIVATE_SOURCES)
GroupSources(${CMAKE_CURRENT_SOURCE_DIR})
ADD_DEFINITIONS(-DUNICODE -D_UNICODE)

add_library(XCommon STATIC ${PRIVATE_SOURCES})

target_include_directories(XCommon PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/pch PUBLIC  ${CMAKE_CURRENT_SOURCE_DIR}/src)
target_link_libraries(XCommon PRIVATE emoney-core-interface PUBLIC jsoncpp fmt mbedtls)

set_target_properties(XCommon PROPERTIES FOLDER "dep")
set_property(TARGET XCommon PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")